# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.
class ImgInfo(models.Model):
    ImgID=models.CharField(max_length=16,verbose_name="图片编号")#Using the uploaddatetime's time stamp
    UploadDate=models.DateField(verbose_name='上传日期',blank=True,null=True)
    StorePath=models.CharField(max_length=200,verbose_name="存储路径",blank=True,null=True)
    TakenDate=models.DateField(verbose_name='拍摄时间',blank=True,null=True)
    RawCategory=models.CharField(max_length=5,verbose_name="原始类别",blank=True,null=True)
    #0-动物,1-植物,2-食物,3-建筑物,4-工具及用品,5-景观(场景),6-其他
    NewCategory=models.CharField(max_length=5,verbose_name="最终类别",blank=True,null=True)
    UpImage = models.ImageField(upload_to='pic',verbose_name="上传图片")
    Imghs=models.CharField(max_length=100,verbose_name="哈希值",blank=True,null=True)
    Description=models.TextField(verbose_name="图片描述",blank=True,null=True)
    def __unicode__(self):
        return self.ImgID